package com.hnevc.yourhealthmanager.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(value = "WeightRecordDTO", description = "体重记录DTO信息")
public class WeightRecordDTO {

    @ApiModelProperty(value = "体重记录ID")
    private Integer id;
    @ApiModelProperty(value = "用户ID")
    private Integer userId;
    @ApiModelProperty(value = "用户姓名")
    private String userName;
    @ApiModelProperty(value = "体重，单位千克")
    private Float weight;
    @ApiModelProperty(value = "称重时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date weightTime;
    // 省略getter和setter方法
    @ApiModelProperty(value = "称重方式，手工输入，设备输入")
    private String weightType;



}